<extend name='./Apps/Dzdjwyadmin/Common/layout.html' />
<block name='mycss'>
<style type="text/css">
  /*.pic{float:left;width:23%;margin:3px;border:6px groove #4D3631;border-radius:4%;}*/
  .panel-heading{height:40px;}
  .pic{float:left;width:23%;margin:3px;border:6px groove #4D3631;border-radius:4%;}
  .span{font-size:15px;}
  .btn{float:right;margin-top:-8px;margin-left:3px;}
  .btn-danger{margin-left:15px;}
  .clear{clear:both;}
</style>
</block>

<block name='bodyname'>
	
	<div class="bs-example" data-example-id="panel-with-list-group">

    <div class="panel panel-default">
      <!-- Default panel contents -->
      <div class="panel-heading">订单：<span class="span">{$data[0]['id']}</span>
      
      <button type="button" class="btn btn-danger">拒绝处理</button>
      <button type="button" class="btn btn-success"><?php $status=$data[0]['status']==2?'已完成':'未完成'; echo $status; ?></button>
      
      <?php 
        if($data[0]['status'] == 0 || $data[0]['status'] == 1){
      ?>
        <button type="button" class="btn btn-primary"><?php echo $data[0]['status']==1?'已受理':'待受理'; ?></button>
      <?php
        }
      ?>
      
          <!-- str_replace([3,4],['已拒绝','拒绝受理'],3); -->
      <div class="clear"></div>
      </div>

      <!-- List group -->
      <ul class="list-group">
        <li class="list-group-item">申请人: <span class="span">{$data[0]['username']}</span></li>
        <li class="list-group-item">电话号：<span class="span">{$data[0]['phone']}</span></li>
        <li class="list-group-item">定制数量：<span class="span">{$data.0.number}</span></li>
        <li class="list-group-item">创建时间：<span class="span">{$data.0.ctime}</span></li>
        <li class="list-group-item">详细地址：<span class="span">{$data.0.address}</span></li>
        <li class="list-group-item">
        	<p>参考定制图片区域：</p>
        <?php 
            foreach ($data[0]['photo'] as $k => $v) {
              // var_dump($data[0]['photo']);
              // var_dump($v[0]);
         ?>
          <img class='pic' src="__PUBLIC__/{$v}" alt="暂无图片信息" />
        <?php 
            }
         ?>
	        <!-- img class='pic' src="__PUBLIC__/Uploads\2017-03-21/1.jpg" alt="">
	        <img class='pic' src="__PUBLIC__/Uploads\2017-03-21/2.jpg" alt="">
	        <img class='pic' src="__PUBLIC__/Uploads\2017-03-22/58d23adaae1f4.jpg" alt="">
          <img class='pic' src="__PUBLIC__/Uploads\2017-03-23/58d34236b38fa.jpg" alt="">
	        <img class='pic' src="__PUBLIC__/Uploads\2017-03-23/58d34236b40ca.jpg" alt=""> -->
	        <div class='clear'></div>
        </li>
        <li class="list-group-item">定制需求：<span class="span">{$data.0.need}</span></li>
      </ul>
    </div>
  </div>
</block>
<block name='myjs'>
    <!-- js demo -->
  <script type="text/javascript" src='/apps/dzdjwyadmin/common/js/seeOrder_status.js'></script>
  <script type="text/javascript">
    
  </script>
</block>